package team.freeroom.hotelmanage.repository.entity;

/**
 * 菜单实体表
 *
 * @author aBadString
 */
public class Menu {
    /**
     * 菜单 ID
     */
    private Long id;
    /**
     * 父菜单 ID
     */
    private Long parentId;
    //private Long _parentId;//父类id,用来匹配easyui的父类id
    /**
     * 菜单名称
     */
    private String name;
    /**
     * 菜单图标
     */
    private String icon;
    /**
     * 菜单 Url 地址
     */
    private String url;

    public Menu() {
    }

    public Menu(Long parentId, String name, String icon, String url) {
        this.parentId = parentId;
        this.name = name;
        this.icon = icon;
        this.url = url;
    }

    public Menu(Long id, Long parentId, String name, String icon, String url) {
        this.id = id;
        this.parentId = parentId;
        this.name = name;
        this.icon = icon;
        this.url = url;
    }

    @Override
    public String toString() {
        return "Menu{" +
                "id=" + id +
                ", parentId=" + parentId +
                ", name='" + name + '\'' +
                ", icon='" + icon + '\'' +
                ", url='" + url + '\'' +
                '}';
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
}
